﻿using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Ribbon;
using ConsoleDomain.View;
using ConsoleDomain.ViewModel;

namespace AIPASoft.View
{ 
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : RibbonWindow
    { 
        public MainWindow()
        {
            InitializeComponent();

            var vm = new ViewModel.MainWindowViewModel(ribbon,ContentHolder); 
            this.DataContext = vm;

            //ConsoleDomain.ConsoleDomain cd = new ConsoleDomain.ConsoleDomain();
            //ConsoleDomain.View.ConsoleRibbonView view = new ConsoleRibbonView();

            //ConsoleDomain.ViewModel.ConsoleRibbonViewModel vmodel = new ConsoleRibbonViewModel();
            //view.DataContext = vmodel;

            //var cont = cd.GetDomainTab();
            //ribbon.Items.Add(cont);
            //RibbonTab tab = new RibbonTab();
            //tab.Header = "asdasda";
            //ribbon.Items.Add(tab);

            // var tc = new TestControlWpf { Height = MainStack.ActualHeight - ribbon.ActualHeight };

            // UserControlHolder.Children.Add(tc);
        }
         
         
    }
}
